package com.whmskj.xjlhbc.mapper;

import com.whmskj.xjlhbc.domain.EquipmentCounterStatements;
import com.whmskj.xjlhbc.vo.HomeDataVo;
import com.whmskj.xjlhbc.vo.HomeRealinfoDataVo;
import com.whmskj.xjlhbc.vo.HomeVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface HomeMapper{

    HomeVo.TopBoard sjtj(String month);

    Double select(@Param("classes") String classes, @Param("date") String date);

    Double selectZj(String date);

    Double selectJs(String date);

    int selectPersonnelTotal(String workshop);

    int selectPersonnel(@Param("workshop") String workshop, @Param("kq") String kq);

    List<Map<String, Object>> selectPersonnelList(String workshop);

    Integer selectSbzt(String state);

    List<Map<String, Object>> selectGzlx();

    List<HomeVo.Stop> selectStop();

    Double seletCl(String d);

    //首页本月统计数据
    HomeDataVo.HomeDataParamVo selectHomeData(String month);

    HomeRealinfoDataVo realInfoData(String now);//织布车间
    HomeRealinfoDataVo realInfoDataZzcj(String now);//准整车间
    HomeRealinfoDataVo realInfoDataZlcj(String now);//整理车间

    List<Map<String, Object>> cldb(String now);

    List<EquipmentCounterStatements> selectJtzt(String workshop);

    //产量完成情况
    Map<String,Object> selectClWcqk(@Param("year") int year, @Param("month") int month);
    Map<String,Object> selectOrderInfo(String date);

    Map<String, Object> selectYsKc();

    Map<String, Object> selectCpKc();

}
